<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>左右布局模式</title>
		<style>
			.left{
				width: 30%;
				padding: 10px;
				background-color: #00ff00;
				/*左侧整体靠左*/
				float: left;
			}
			.right{
				width: 60%;
				padding: 10px;
				background-color: #ff00ff;
				/*右侧整体靠右*/
				float: right;
			}
		</style>
	</head>
	<body>
		<div>
			<div class="left">左侧区域</div>
			<div class="right">右侧区域</div>
		</div>
	</body>
</html>